Fixing a couple of get mutators and toArray() implementations.

Signed-off-by: Ben Corlett <bencorlett@me.com>