Update from upstream 2014-04.08

3a06292c7dbb25d18ea3ada90a6a09de38a99c4c
Update from upstream 2014-04-21

a2935fbda12c4c2de57de1761d4a50c166a5b3ce
Accept `~~` as toInt32 method