work on objects as arrays, as discussed in #52