Implement missing logic in p6scalarfromdesc.