Took difference of types into account in merge and rbind