fix bug in inferArray - should return [a], not a