replace checks for collection or array with a util method in FormDataService and do explicit tests for what we are checking for (it was a little confused)
remove duplicate code in FormTagLib