Moved function declarations to {eof, Line}

If you try an `-export_type()` in a file that uses the `sqerl_gobot`, the file won't compile because the export_type directive needs to be before any function declarations.

I moved the inserted functions to the end of the module, since nothing should be after them anyway.

This fixes the issue @seth found.