Dialyzer fixes

add some typespecs to get dialyzer clean, and move a lager warning to error_logger, since that's normally the way that it's done in bitcask (gets cleaned up by the lager parse_transform anyway).  cc @rzezeski