Made Q.Promise.state constants into numbers