Revert removing type property from Profile

Keep type property for backward compatitibility.