Migrate to Kotlin 0.7.1217

Just changed the version of Kotlin and fixed two new compilation errors.