fixed denormalization DSL, restored type field used by Sunspot