Fix isValid global leak - see rtc-io/rtc#11
Bump version to 1.3.1