title: EXC_BAD_ACCESS when setting Integer to anything else than zero
body: <p>I have this object:</p>
  
  <pre><code>@interface Song : NSManagedObject
  
  @property (nonatomic, strong) NSString *songName;
  @property (nonatomic) int32_t achievedPoints;
  </code></pre>
  
  <p>When I set the properties like this</p>
  
  <pre><code>Song *song1 = [[SongStore sharedStore] createSong]; 
  song1.songName = @"Song 1";
  song1.achievedPoints = 0;
  </code></pre>
  
  <p>everything works, however once I try to set the <code>achievedPoints</code> variable to something else than 0 I get an EXC_BAD_ACCESS.</p>
  
  <p>This is what the <code>createSong</code> method does:</p>
  
  <pre><code>- (Song *)createSong {
      double order;
      if ([allSongs count] == 0) {
          order = 1.0;
      } else {
          order = [[allSongs lastObject] orderingValue] + 1.0;
      }
  
      Song *p = [NSEntityDescription insertNewObjectForEntityForName:@"Song" inManagedObjectContext:context];
  
      [p setOrderingValue:order];
      [allSongs addObject:p];
      return p;
  }
  </code></pre>
  
  <p>I have no idea why getting the value and setting it to 0 works but anything else than zero crashes the program. Any help is highly appreciated.</p>