Modified get_param_index to allow access to phase keys

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>