fixed __flex_binary_moment() to deal with mismatched index sets