extend array support to cover most built-in array types
fix indentation

PHP uses tabs. Sorry about the spaces :(