Fixed ambiguity of FrameBuffer texture verification of type. This way if the texture type is unknown, it doesn't try to use it.
Made sure texture type when binding a Sampler takes face type into account (otherwise it will use Texture2d on a TextureCube face.