add/fix incrementally constructed rank/select dictionaries
add missing include statement
add virtual destructor
add unique pointer types for BamWriter classes