BUG: fix dot() to work with nullable arrays