Fix YAML parser for stdin + add tests
Merge branch 'master' into goroutine