Error passing none as last positional argument to macros

Hello, ran into this upon upgrading to the latest - checking for the existence of keyword arguments didn't allow the last positional argument to be none (or undefined, in js-land).  Also added a test for this case, and regenerated browser files.