Fixed incrementing and decrementing fields.

Array was being expected, but parseObject class passes integer for
amount parameter.