new parameter replace for Enums which allows definition of replaceable
keywords (fixes #531)