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.