Fixed nil constants taking more const space

When a function has multiple nil constants, it should use the same
const table value.