Make better use of dialyzer and xref

Create a separate oneshot/3 function to handle the non-repeating oneshot
schedule type. This fixes the dialyzer warnings that were being ignored.

Enable only the xref undefined_function_calls check rather than checking
for and ignoring exports_not_used.