Form helper _attributes_to_string() micro-optimization

As $attributes should be most of the times an array, let's save an is_string() call.
Polishing Form helper
Change spaces to tabs
Merge pull request #2567 from vlakoff/develop-2

Polishing Form helper