Fix endless loop in array type handling

evil.. :D. Fixes #35