In immediate mode, resolve custom attributes; Fixes #183
In immediate mode, resolve security declarations