Removed side-effects due to references in Parser's config and enabled config optimization by default in finalize()