php-weasel-30 Support for marshalling to/from primitive types/arrays

Added type param to writeArray()