Add isClosedOpen, isOpenClosed and impl tweaks