Fix #43 , add possibility to pass single value to optimizer instead of lists or tuples as ranges