Correctly handle empty object arrays.

This fixes #37.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>