Fix interface{} in api/types.go; plumb through system.