Optimized uniform/cst buffer updates

There was a bad memcmp() and useless binding in some cases