Fixed background shape bug (issue #4)

2D arrays get a 2D background where the second dimension is of length one.

This closes issue #4.