bugfix: _remove_dots should also remove dots for hashes in an array