Annotated bool and string arguments of native functions to fix marshalling errors and code analyzing warnings.