Make Custom Manifests more robust

Checks parents for variable values, 0 if nothing exists
Fix size bug in custom manifests if custom is not first declared