detect array members

detect which members are arrays and use TYPE[] style PHPDoc for them