handle sparse arrays properly. closes #15
0.3.5