Fix mapping for simple array types (i.e. string[])

When using a mapping of `string[]` in a namespaced class, it attempted to construct an object using `new \namespace\string ($value)` which is not valid.

I've also added a test case to test for this functionality.
I still think we can remove it. If you don't think so please add a test that covers that case.