Support tag nesting properly; unit tests; recursion checks for tags.