trim stderr before comparing test results
fix valid redefinition for dynamic methods and function variables, and allow read/write variance for interface variables (closes #3361)