How do I quick-reload changes to inline macros in velocity templates during development?

I have a velocity macro:

#macro (foo)
bar
#end
Hello #foo()

If I change the macro from bar to baz, the changes are not reflected until I re-pacakge my plugin (or restart JIRA). If I change the outer part from Hello to hi, those changes are reflected just fine. Why aren’t the macro changes picked up, and how can I fix this?

For some reason this works when the template is rendered by a web action, but fails for a web panel.

I’ve tried overriding the various Velocity properties to no avail:

class.resource.loader.cache=false
plugin.resource.loader.cache = false
velocimacro.library.autoreload=true
velocity.engine.resource.manager.cache.enabled=false

Any ideas?