fix/mixpanel-arrays

@ianstormtaylor passing tests with your much cleaned up code :)