Various fixes in three.d.ts