Fix replace of legacy package.
Support closures as palettes_callback.
Fix #15, check for contao style callbacks.