Fold all properties and constants for a class