More fixes for inplace argument support - add const to funcprotos, etc