Fixes having magic tags within an live section within an element's tag

This fixes #592.