Fix error in empty object sanitization

+add one test for traversing arrays

#243