add a length filter that works for objects as well as arrays and strings
in length filter: use if (input.hasOwnProperty('length') (to be more strict)
length filter should return empty string if not an object or array
Merge pull request #520 from wilsaj/add-length-filter

add a length filter that works for objects as well as arrays and strings