fix toThunk object check regression. Closes #89