Added attribute binding implementation akin to spire's.

There is still an issue when glDrawElements is called. Looking into it.