Added test for parameter being AnyAllowableValues$ to avoid classCastException
added safeguard check to avoid NPE when dataType parameter is null