Ensure that all calls of legalChordSonorities method check class of returned object.