[indent-fold addon] Fix indentation folding

Fix next line after block being incorrectly folded into the block
Fix detection of the end of a code block

YAML and Python were used to test code block detection, but it should work with other indent-based languages as well.

--
@andersonvom and @arbylee