ENH: better type check for Epochs. closes #1002