Real and imaginary worlds commingle in “The Forest,” an elegantly composed fantasy-drama about an idealistic schoolteacher whose posting to a remote Thai village upsets the local status quo.