Filter nulls

 1. Fixed issues with undefineds causing an Error. (undefines are now handled like null)
  2. adds the filterNulls option that removes elements that are null or undefined.

Added tests and documentation for the undefined/nulls case.