serializeObject spec fix

typeOf function now looks for Array specifically
Merge pull request #64 from paulfalgout/spec-fix

serializeObject spec fix