fixed important initialization problem for the subkey case

All list members were not being initialized. These fixes need to be propagated to the nonsubkey case.
fixed use of asserts