Bugfixes for dealing with arrays containing doubles.