HSSObject: Fix the toMap() method

It was still using the old properties system