Fix space option not being applied to function bodies (#195)
This PR addresses Issue #195 where the space option was not being applied to function body formatting. The implementation enhances the serializeFunc function to accept and utilize formatting options, ensuring function bodies are properly indented and formatted when the space option is provided. Added comprehensive test coverage for anonymous functions, named functions, arrow functions, multiple functions in the same object, and edge cases. All existing functionality remains intact with 100% test coverage maintained (80/80 tests passing).
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.