Corrected bug in ruby template concerning view definition generation for C binding. Also enhanced sparse matrix example.