Add yamdle.parse, implement scalar parsing

- rename isCharType() to isType() and change signature to accept a
  string and index instead of a 1-length string
- isType() now returns the last index of the matched string
- add convert() to convert scalar strings into Javascript types