GROOVY-6857: fix parse on byte array to not throw stack over flow exceptions

Fix parse(byte[], string) method to not be endlessly recursive and add test case