add dialyzer targets

* Add dialyzer targets: `build_plt`, `dialyzer` and `clean_plt`.

* Fix obvious type mistake (change `record()` to `tuple()`).

There are some dialyzer errors but I didn't attempt to fix them because I don't have the time to parse the bitcask code and determine the semantics.