Added condition to Realize nodes.
Fixed Allocate handler for C codegen to respect conditional allocations.