Tidied up equality comparisons
cleanup of property equality
Updated index encoding of arrays