Allow headers to be nested deeper - useful for appendices

This won't affect pretty much anything except for appendices (as nothing else has headers buried so deep.)