Cleaned up both bilinear and bicubic patch code.
Unique ID's of primitives are now set when they are added to the scene.

Before they were being set upon primitive creation.  But since splitting
has been added, that can cause introduce thread contention over the
global UID counter.