fixes extractArray and serializeHasMany

fixes #49. don't merge. will add tests later today.