throwexc, dynattrib, improve checks for isOfType