Removed the last few potential bugs in `fdb.erl` caused by missing types

Thank you dialyzer!