removed trailing comma from gruntfile.js
adding of types other than String is now possible, also some tiny optimisations
function isArray() added for internal usage