Warn if specified memory size is close to the default

Issue a warning to standard error if a specified memory size is within
10% of the default size.

Rework StackMemoryBucket so its default value is available like that
of other memory buckets.

[#52692569]