Pretty-printing fixes

Bump jackson-core-asl dependency to avoid ArrayIndexOutOfBoundsException when pretty-printing certain structures. Move generator instantiation outwards to allow pretty-printing to maintain correct indentation prefix for nested structures.