CreateNewBlock and miner_tests: Also check generated template is valid by CheckBlockHeader, CtxCheckBlockHeader, CheckBlock, and CtxCheckBlock