allow <SID> in function declaration

also, warn if using 'defm' outside of class