Fix for #36

SerializeHasMany doesn't handle promises. Getting the IDs from `data` avoids the promise and also avoids having to fetch the related records before being able to save a reference to them.
Merge pull request #37 from steffann/patch-1

Fix for #36