support nested class&enum&flag as parameter types.