Added check for FunctionalProperty when setting maxCardinality