Fix sign of error code returned by array_insert/append()
Fix heap corruption in array_insert()

The move_count variable which holds the number of elements that
need to be moved before insertion was miscalculated. This caused
a buffer overrun in subsequent memmove call.

This fixes issue #28.
Fix array_remove() moving too much elements

Same issue as in the previous commit.