Fix "stack" property so that it is not inadvertently exposed
to scripts.