ideal->optimal, naive->array.

Nomenclature consistency FTW.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>