add const for new attribute types
fix template declaration view