Tests for regex, remove dead parser code.

 * toSource isn't used and throws warnings, removing from filterparser.js
 * Added tests for regex arg parsing.