Mapping: dynamic flag is explicitly returned even when not set
fixes #2789