Fix passing properties as values to NewProperty factory methods.