Misc Fixes

A few small random fixes:

 - We were not properly handling disposed constant buffers.
 - Moved shader model validation from the MGFX parser into the code.