Fixed a bug in the interval entity processing system.
Added typeid to entity templates.