closes #1063 introduced field-type dependant input data filtering
refactoring
removed excessive casting
Merge pull request #1064 from cm-jan/issue-1063

#1063 fixed user input filters for arrays