Garbage prevention.

* Remove debug echo
* Instead of accepting possible garbage, sanitize by using available "multiple fields" properties to determine whether or not data should be an array.