added typecheck for primitive arrays
Merge branch 'master' of https://github.com/popofibo/TrimObjectGraph