Modify Swig renderer #483
Add `only` param to partial helper
Bind local context to helper functions