add diffTypes as optional parameter to diff

add diffTypes as optional parameter to diff and diffToChangeLog, toenable restricting the types of object being compared