scriptzeug: support const references in functions